package io.sunny.platform.backend.common.config;

import org.javers.core.Javers;
import org.javers.core.JaversBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author SUNNY
 * @Date 2025/8/31 12:46
 * @PackageName: io.sunny.platform.backend.common.config
 * @Description: 访问入口http://IP:端口/上下文/api/v1/swagger-ui/index.html
 * @Version 1.0
 */
@Configuration
public class CommonConfig {
//    @Bean
//    public GroupedOpenApi productApi() {
//        return GroupedOpenApi.builder()
//                .group("product-service")
//                .pathsToMatch("/api/v1/product/**")
//                .build();
//    }
    @Bean
    public Javers javers() {
        return JaversBuilder.javers()
                .withPrettyPrint(true)
                .build();
    }
}
